package com.zhoug.demo.viewpermission.network;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

/**
 * @author: zhoug
 * @since: 2025-06-12
 */
public class TokenInterceptor implements Interceptor {

    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request();
        Request newRequest = request.newBuilder()
                .addHeader("Token", NetWorkConfig.TOKEN)
                .build();
        return chain.proceed(newRequest);
    }


}
